import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  srcDir: './docs',
  base: "/python-ai",
  // outDir: "./public",
  title: "AI 学习指南",
  description: "若愚的AI学习教程",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '首页', link: '/' },
      { text: 'Python教程', link: '/python/1_install' }
    ],

    sidebar: [
      {
        text: 'Python 教程',
        items: [
          {
            text: 'Python 入门',
            items: [
              { text: '安装', link: '/python/1_install' },
              { text: '数据类型', link: '/python/2_data_type' },
              { text: '运算符', link: '/python/3_operator' },
              { text: 'if语句', link: '/python/4_if' },
              { text: 'for语句', link: '/python/5_for' },
              { text: 'while语句', link: '/python/6_while' },
              { text: '文件读写', link: '/python/7_file' },
              { text: '字符串', link: '/python/8_str' },
              { text: 'list', link: '/python/9_list' },
              { text: 'tuple', link: '/python/10_tuple' },
              { text: 'dict', link: '/python/11_dict' },
              { text: 'set', link: '/python/12_set' },
              { text: '函数', link: '/python/13_function' },
              { text: 'lambda', link: '/python/14_lambda_array_sort' },
              { text: '类', link: '/python/15_class' },
              { text: '异常', link: '/python/16_exception' },
              { text: '包和模块', link: '/python/17_package' },
      
              
              { text: 'Runtime API Examples', link: '/api-examples' }
            ]
          }
        ]
      },
      {
        text: 'AI 教程',
        items: [
          { text: 'Markdown Examples', link: '/markdown-examples' },
          { text: 'Runtime API Examples', link: '/api-examples' }
        ]
      },
    ],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
})
